<template>
  <div class="site-aside-container">
    <template v-if="data">
      <Avatar :url="data.avatar" :size="150" />
      <h1 class="title">{{ data.siteTitle }}</h1>
      <Menu />
      <Contact />
      <p class="footer">{{ data.icp }}</p>
    </template>
  </div>
</template>

<script>
import Contact from '@/components/SiteAside/Contact';
import Menu from '@/components/SiteAside/Menu';
import Avatar from '@/components/Avatar';
import { mapState } from 'vuex';
export default {
  components: {
    Contact,
    Menu,
    Avatar
  },
  computed: mapState('setting', ['data'])
};
</script>

<style lang="less" scoped>
@import '~@/styles/var.less';
.site-aside-container {
  width: 100%;
  height: 100%;
  background: @dark;
  padding: 20px 0;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
}
.avatar-container {
  margin: 0 auto;
}
.title {
  font-size: 1.2em;
  color: #fff;
  text-align: center;
}
.footer {
  text-align: center;
  font-size: 12px;
}
</style>
